/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.hk.sys.entity.user;

import java.util.Date;

import com.thinkgem.jeesite.modules.hk.adv.entity.HkAllAdv;
import org.hibernate.validator.constraints.Length;
import com.thinkgem.jeesite.modules.sys.entity.User;

import com.thinkgem.jeesite.common.persistence.DataEntity;

/**
 * 用户举报Entity
 * @author 罗天文
 * @version 2018-03-19
 */
public class HkAdvReport extends DataEntity<HkAdvReport> {
	
	private static final long serialVersionUID = 1L;
	private HkAllAdv source;		// 源id
	private String content;		// 举报内容
	private String type;		// 举报类型
	private User user;		// 举报者
	private String imgSrc;		// 举报图片
	private Date beginCreateDate;		// 开始 创建时间
	private Date endCreateDate;		// 结束 创建时间
	
	public HkAdvReport() {
		super();
	}

	public HkAdvReport(String id){
		super(id);
	}

	public HkAllAdv getSource() {
		return source;
	}

	public void setSource(HkAllAdv source) {
		this.source = source;
	}

	@Length(min=0, max=32, message="举报内容长度必须介于 0 和 32 之间")
	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}
	
	@Length(min=0, max=1, message="举报类型长度必须介于 0 和 1 之间")
	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}
	
	public User getUser() {
		return user;
	}

	public void setUser(User user) {
		this.user = user;
	}
	
	@Length(min=0, max=200, message="举报图片长度必须介于 0 和 200 之间")
	public String getImgSrc() {
		return imgSrc;
	}

	public void setImgSrc(String imgSrc) {
		this.imgSrc = imgSrc;
	}
	
	public Date getBeginCreateDate() {
		return beginCreateDate;
	}

	public void setBeginCreateDate(Date beginCreateDate) {
		this.beginCreateDate = beginCreateDate;
	}
	
	public Date getEndCreateDate() {
		return endCreateDate;
	}

	public void setEndCreateDate(Date endCreateDate) {
		this.endCreateDate = endCreateDate;
	}
		
}